package yxy.game.pm2.module.wuchao.event;

import yxy.cherry.data.bean.glorywuchao;
import yxy.game.pm2.message.WuchaoMessage;

/** 乌巢事件 敌人 */
public class WuchaoEventEnemy extends WuchaoEvent {
	@Override
	public EventType getEventType() {
		return EventType.Enemy;
	}

	@Override
	protected void _packageInfo(WuchaoMessage.WuchaoEvent.Builder builder) {
		builder.setEnemy(getDataId());
		builder.setHp(getHp());
	}

	private int dataId;// 数据id
	private int hp;

	public int getDataId() {
		return dataId;
	}

	public void setDataId(int dataId) {
		this.dataId = dataId;
	}

	public int getHp() {
		return hp;
	}

	public void setHp(int hp) {
		this.hp = hp;
	}

	public static WuchaoEventEnemy create(glorywuchao data) {
		WuchaoEventEnemy event = new WuchaoEventEnemy();
		event.setDataId(data.getId());
		event.setHp(10000);
		return event;
	}

}
